package Generic;

import org.junit.Test;

/**
 * Created by ZC_zc on 2016/11/7.
 */
public class GenDemo {

    @Test
    public void genTest(){
        Gen<Integer> gen=new Gen<>(1);
        Gen<Double> gen1= new Gen<>(1.1);

        System.out.println(gen.getOb());

    }

    @Test
    public void nongenTest(){
        NonGen iOb=new NonGen(1);
        NonGen strOb=new NonGen("str");

        iOb=strOb;
        int v= (Integer) iOb.getOb();
        System.out.println(v);

    }

    public void bounds(){
        String[] strings={"1","2","3"};
        Integer[] ints={1,2,3};
        Bounds bounds=new Bounds(ints);
    }
}
